package com.chance.cc.crawler.prod.command.trigger.domain.news.baidu;

import com.chance.cc.crawler.core.CrawlerJob;
import com.chance.cc.crawler.meta.core.bean.CrawlerMetaConstant;
import com.chance.cc.crawler.prod.command.job.domain.news.baidu.BaiDuCommonScript;
import com.chance.cc.crawler.prod.command.job.domain.news.baidu.baijiahao.realtime.BJHRealtimeCrawlerSchedulerJob;
import com.chance.cc.crawler.prod.command.job.domain.news.baidu.baijiahao.trace.BJHCommentTraceCrawlerSchedulerJob;
import com.chance.cc.crawler.prod.command.job.domain.news.baidu.baijiahao.trace.BJHTraceCrawlerSchedulerJob;
import com.chance.cc.crawler.prod.command.job.domain.news.baidu.qqhao.realtime.QQHaoRealtimeCrawlerSchedulerJob;
import com.chance.cc.crawler.prod.command.job.domain.news.baidu.qqhao.trace.QQHaoCommentTraceCrawlerSchedulerJob;
import com.chance.cc.crawler.prod.command.job.domain.news.baidu.qqhao.trace.QQHaoTraceCrawlerSchedulerJob;
import com.chance.cc.crawler.prod.command.job.domain.news.baidu.tieba.realtime.BaiDuTopicRealtimeCrawlerSchedulerJob;
import com.chance.cc.crawler.prod.command.job.domain.news.baidu.tieba.trace.BaiDuTieBaTraceCrawlerSchedulerJob;
import com.chance.cc.crawler.prod.command.job.domain.news.baidu.tieba.trace.BaiDuTopicCommentTraceCrawlerSchedulerJob;
import com.chance.cc.crawler.prod.command.job.domain.news.baidu.tieba.trace.BaiDuTopicTraceCrawlerSchedulerJob;
import com.chance.cc.crawler.prod.command.job.domain.news.baidu.zhidao.realtime.BaiDuZhiDaoRealtimeCrawlerSchedulerJob;
import com.chance.cc.crawler.prod.command.job.domain.news.baidu.zhidao.trace.BaiDuZhiDaoCommentTraceCrawlerSchedulerJob;
import com.chance.cc.crawler.prod.command.job.domain.news.baidu.zhidao.trace.BaiDuZhiDaoTraceCrawlerSchedulerJob;
import com.chance.cc.crawler.prod.command.trigger.CommonCrawlerSchedulerTrigger;

/**
 * @author lt
 * @version 1.0
 * @date 2021-04-10 11:05:12
 * @email okprog@sina.com
 */
public class BaiDuCommonCrawlerScheduleTrigger extends CommonCrawlerSchedulerTrigger {
    public static void main(String[] args) {
//        publishBaiDuTopicRealtimeScheduleTriggerInfo();
        publishBaiDuTopicTraceScheduleTriggerInfo();
        publishBaiDuTiebaTraceScheduleTriggerInfo();
//        publishBaiDuTopicCommentTraceScheduleTriggerInfo();


        //bjh
//        publishBJHRealtimeScheduleTriggerInfo();
//        publishBJHTraceScheduleTriggerInfo();
//        publishBJHCommentTraceScheduleTriggerInfo();

        //qqh
//        publishQQHaoRealtimeScheduleTriggerInfo();
//        publishQQHaoTraceScheduleTriggerInfo();
//        publishQQHaoCommentTraceScheduleTriggerInfo();

        //zhidao
//        publishBaiDuZhiDaoRealtimeScheduleTriggerInfo();
//        publishBaiDuZhiDaoTraceScheduleTriggerInfo();
//        publishBaiDuZhiDaoCommentTraceScheduleTriggerInfo();
    }

    public static void publishBaiDuTopicRealtimeScheduleTriggerInfo(){
        CrawlerJob crawlerJob = BaiDuTopicRealtimeCrawlerSchedulerJob.crawlerScheduler();
        metaServiceCommand_17.addOrUpdateScheduleCrawlerTrigger(
                crawlerJob.generateCrawlerKey(),
                crawlerJob.generateCrawlerTriggerKey(),
                BaiDuCommonScript.domain,
                CrawlerMetaConstant.ScheduleJobTrigger_Cron,
                "0 0/30 * * * ?",
                "百度贴吧实时采集任务，每三十分钟采集一次");
    }

    public static void publishBaiDuTopicTraceScheduleTriggerInfo(){
        CrawlerJob crawlerJob = BaiDuTopicTraceCrawlerSchedulerJob.crawlerScheduler();
        metaServiceCommand_17.addOrUpdateScheduleCrawlerTrigger(
                crawlerJob.generateCrawlerKey(),
                crawlerJob.generateCrawlerTriggerKey(),
                BaiDuCommonScript.domain,
                CrawlerMetaConstant.ScheduleJobTrigger_Cron,
                "0 30 0 * * ?",
                "百度贴吧追溯7日评论采集任务，每天采集一次");
    }

    public static void publishBaiDuTiebaTraceScheduleTriggerInfo(){
        CrawlerJob crawlerJob = BaiDuTieBaTraceCrawlerSchedulerJob.crawlerScheduler();
        metaServiceCommand_17.addOrUpdateScheduleCrawlerTrigger(
                crawlerJob.generateCrawlerKey(),
                crawlerJob.generateCrawlerTriggerKey(),
                BaiDuCommonScript.domain,
                CrawlerMetaConstant.ScheduleJobTrigger_Cron,
                "0 30 0 * * ?",
                "百度贴吧追溯7日评论采集任务，每天采集一次，20210729新增调度");
    }

    public static void publishBaiDuTopicCommentTraceScheduleTriggerInfo(){
        CrawlerJob crawlerJob = BaiDuTopicCommentTraceCrawlerSchedulerJob.crawlerScheduler();
        metaServiceCommand_17.addOrUpdateScheduleCrawlerTrigger(
                crawlerJob.generateCrawlerKey(),
                crawlerJob.generateCrawlerTriggerKey(),
                BaiDuCommonScript.domain,
                CrawlerMetaConstant.ScheduleJobTrigger_Cron,
                "0 0 * * * ?",
                "百度贴吧追溯当日评论采集任务，每小时采集一次");
    }



    public static void publishBJHRealtimeScheduleTriggerInfo(){
        CrawlerJob crawlerJob = BJHRealtimeCrawlerSchedulerJob.crawlerScheduler();
        metaServiceCommand_17.addOrUpdateScheduleCrawlerTrigger(
                crawlerJob.generateCrawlerKey(),
                crawlerJob.generateCrawlerTriggerKey(),
                BaiDuCommonScript.domain,
                CrawlerMetaConstant.ScheduleJobTrigger_Cron,
                "0 0/10 * * * ?",
                "百家号实时采集任务，每十分钟采集一次");
    }

    public static void publishBJHTraceScheduleTriggerInfo(){
        CrawlerJob crawlerJob = BJHTraceCrawlerSchedulerJob.crawlerScheduler();
        metaServiceCommand_17.addOrUpdateScheduleCrawlerTrigger(
                crawlerJob.generateCrawlerKey(),
                crawlerJob.generateCrawlerTriggerKey(),
                BaiDuCommonScript.domain,
                CrawlerMetaConstant.ScheduleJobTrigger_Cron,
                "0 30 0 * * ?",
                "百家号追溯7日评论采集任务，每天采集一次");
    }

    public static void publishBJHCommentTraceScheduleTriggerInfo(){
        CrawlerJob crawlerJob = BJHCommentTraceCrawlerSchedulerJob.crawlerScheduler();
        metaServiceCommand_17.addOrUpdateScheduleCrawlerTrigger(
                crawlerJob.generateCrawlerKey(),
                crawlerJob.generateCrawlerTriggerKey(),
                BaiDuCommonScript.domain,
                CrawlerMetaConstant.ScheduleJobTrigger_Cron,
                "0 0 * * * ?",
                "百家号追溯当日评论采集任务，每小时采集一次");
    }



    public static void publishQQHaoRealtimeScheduleTriggerInfo(){
        CrawlerJob crawlerJob = QQHaoRealtimeCrawlerSchedulerJob.crawlerScheduler();
        metaServiceCommand_17.addOrUpdateScheduleCrawlerTrigger(
                crawlerJob.generateCrawlerKey(),
                crawlerJob.generateCrawlerTriggerKey(),
                BaiDuCommonScript.domain,
                CrawlerMetaConstant.ScheduleJobTrigger_Cron,
                "0 0/30 * * * ?",
                "企鹅号实时采集任务，每十分钟采集一次");
    }

    public static void publishQQHaoTraceScheduleTriggerInfo(){
        CrawlerJob crawlerJob = QQHaoTraceCrawlerSchedulerJob.crawlerScheduler();
        metaServiceCommand_17.addOrUpdateScheduleCrawlerTrigger(
                crawlerJob.generateCrawlerKey(),
                crawlerJob.generateCrawlerTriggerKey(),
                BaiDuCommonScript.domain,
                CrawlerMetaConstant.ScheduleJobTrigger_Cron,
                "0 30 0 * * ?",
                "企鹅号追溯7日评论采集任务，每天采集一次");
    }

    public static void publishQQHaoCommentTraceScheduleTriggerInfo(){
        CrawlerJob crawlerJob = QQHaoCommentTraceCrawlerSchedulerJob.crawlerScheduler();
        metaServiceCommand_17.addOrUpdateScheduleCrawlerTrigger(
                crawlerJob.generateCrawlerKey(),
                crawlerJob.generateCrawlerTriggerKey(),
                BaiDuCommonScript.domain,
                CrawlerMetaConstant.ScheduleJobTrigger_Cron,
                "0 0 * * * ?",
                "企鹅号追溯当日评论采集任务，每小时采集一次");
    }


    public static void publishBaiDuZhiDaoRealtimeScheduleTriggerInfo(){
        CrawlerJob crawlerJob = BaiDuZhiDaoRealtimeCrawlerSchedulerJob.crawlerScheduler();
        metaServiceCommand_17.addOrUpdateScheduleCrawlerTrigger(
                crawlerJob.generateCrawlerKey(),
                crawlerJob.generateCrawlerTriggerKey(),
                BaiDuCommonScript.domain,
                CrawlerMetaConstant.ScheduleJobTrigger_Cron,
                "0 0/30 * * * ?",
                "百度知道实时采集任务，每十分钟采集一次");
    }

    public static void publishBaiDuZhiDaoTraceScheduleTriggerInfo(){
        CrawlerJob crawlerJob = BaiDuZhiDaoTraceCrawlerSchedulerJob.crawlerScheduler();
        metaServiceCommand_17.addOrUpdateScheduleCrawlerTrigger(
                crawlerJob.generateCrawlerKey(),
                crawlerJob.generateCrawlerTriggerKey(),
                BaiDuCommonScript.domain,
                CrawlerMetaConstant.ScheduleJobTrigger_Cron,
                "0 0 1 * * ?",
                "百度知道追溯7日评论采集任务，每天采集一次");
    }

    public static void publishBaiDuZhiDaoCommentTraceScheduleTriggerInfo(){
        CrawlerJob crawlerJob = BaiDuZhiDaoCommentTraceCrawlerSchedulerJob.crawlerScheduler();
        metaServiceCommand_17.addOrUpdateScheduleCrawlerTrigger(
                crawlerJob.generateCrawlerKey(),
                crawlerJob.generateCrawlerTriggerKey(),
                BaiDuCommonScript.domain,
                CrawlerMetaConstant.ScheduleJobTrigger_Cron,
                "0 0 0/2 * * ?",
                "百度知道追溯当日评论采集任务，每2小时采集一次");
    }
}
